package com.gufe.service.user.impl.mp.quiz;

import com.gufe.entity.quiz.AnswerOption;
import com.gufe.mapper.user.mp.quiz.AnswerOptionMapper;
import com.gufe.service.user.mp.quiz.AnswerOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnswerOptionServiceImpl implements AnswerOptionService {

    @Autowired
    private AnswerOptionMapper answerOptionMapper;

    @Override
    public List<AnswerOption> findByQuestionId(Long questionId) {
        return answerOptionMapper.findByQuestionId(questionId);
    }

    @Override
    public AnswerOption findById(Long id) {
        return answerOptionMapper.findById(id);
    }

}